package com.soul.model.mongo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 自增实体对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sequence")
public class Sequence {
    /**
     *  MongoDB自增长id
     */
    @Id
    private ObjectId id;
    /**
     *  自增序列
     */
    private Long seqId;
    /**
     *  集合名称
     */
    private String collName;
}